Inelastic scattering of 185 MeV protons from Mg and Al