BBVA beats Q2 profit on Spain overshadowed by slower growth in Mexico