Microscopic analysis of elastic and inelastic proton scattering from 12C