Effect of pump‐induced density depletions on the spectrum of stimulated electromagnetic emissions