BP sells petchems arm for $5 billion in energy transition revamp