Electrical conductivity and defect structure of Mg-doped Cr2O3