Wood Group to buy Amec Foster Wheeler for $2.7 billion