Wavelength-tunable 40 GHz pulse-train generation using 10 GHz gain-switched Fabry-Perot laser and semiconductor optical amplifier