Electronic structure of the F-center in CaO and MgO