Nonlinear Gain and Threshold Current Variations in a Periodically Corrugated Waveguide