Gain switching of an external cavity grating-coupled surface emitting laser with wide tunability