Stimulated Raman scattering in optical fibers with nonconstant losses: a multiwavelength model.