Wavelength conversion and pulse reshaping through cascaded interactions in an MZI configuration