Effect of Microstructure and Texture on Corrosion Resistance of Magnesium Alloy