BP’s second quarter profit stable as production grows