Inversion of electron spins in CaO with the reversal of the magnetic field