Electron and proton inelastic scattering from 40Ca, 120Sn, and 208Pb