Elastic and inelastic scattering of 49.5 MeV protons by 24Mg