Modeling Raman amplification in multimode and multicore fibers