Understanding Corrosion Behavior of Magnesium Surface by x-Ray Irradiation for Improved Surface Design and Applications