CNOOC to buy Nexen for $15.1 billion in China’s largest foreign deal