40-Gb/s all-optical wavelength conversion based on a nonlinear optical loop mirror