Reactivity of magnesium with oxygen and nitrogen