Electron paramagnetic resonance of Ir 4+ ions in MgO and CaO