Allen & Overy (A&O) and King & Spalding have taken lead roles on the £660m merger of drilling contractors KCA Deutag and Dalma Energy.