Single-longitudinal-mode operation of DF lasers in gain-switched operating conditions