Transient refractive-index changes in stimulated Raman scattering