Core configuration mixing effects in inelastic electron scattering on spherical nuclei