Parametric dependence of stochastic frequency variations in the gain switching of a single-mode laser diode