Irradiation damage clusters in the oxides of beryllium and magnesium