Optical wavelength conversion and gating at 4 Gbit/s using semiconductor optical amplifiers