Defects in ion implanted and electron irradiated Mgo and Al2O3