Elastic and inelastic scattering of 12 MeV polamzed deuterons by 24Mg