Proton and electron inelastic scattering and the shell model for12C