Lepton scattering from Ar40 and Ti48 in the quasielastic peak region