BP buying JX Nippon’s stakes in North Sea fields