BP quarterly profit surges on high energy prices