Transocean to buy Ocean Rig in $2.7B deal