The Elastic and Inelastic Scattering of Protons by Mg