formation of magnesium oxide