Controllable lasing behavior enabled by the transmission guided-mode resonance effect in coupled gratings