German chemicals giant BASF has agreed to merge its Wintershall oil and gas unit with the DEA energy firm