The British Oil company BP is selling off its stake in a joint venture to the state-run Russian oil company Rosneft.