Neutron-proton correlations in (e,e') and (e,e'd) response functions