Relativistic Hartree response function for quasielastic electron scattering on 12C and 40Ca