The application of spectroscopic ellipsometry to the oxidation of magnesium