Oxidation of aluminum-magnesium melts in air, oxygen, flue gas, and carbon dioxide