The elastic scattering of intermediate energy protons from 40Ca and 208Pb