40 Gbit/s all-optical demultiplexing using a monolithically integrated Mach-Zehnder interferometer with semiconductor laser amplifiers