The elastic and inelastic scattering of protons by magnesium in the energy range from 7.3 MeV to 15.9 MeV