Longitudinal and transverse responses in quasi-elastic electron scattering from 208Pb and 4He