BP back in the black as oil prices stabilise