Energy dependence of the elastic scattering and polarization of protons on 40Ca