40 GHz nonlinear all optical switching in a Mach-Zehnder interferometer integrated device