Electron Spin Resonance of Gd3+ and Eu2+ in KTaO3