40-Gb/s all-optical wavelength conversion, regeneration, and demultiplexing in an SOA-based all-active Mach-Zehnder interferometer