Effective emission cross section and gain as a function of the wavelength for different values of the population inversion parameter p.