Carrier compensation by deep levels in Zn1−xMgxO/sapphire