The elastic and inelastic scattering of 20–28 MeV polarized protons by carbon