Effect of Oxidation on the Characteristic Loss Spectra of Aluminum and Magnesium