Approach to Control the Corrosion of Magnesium by Alloying