All-Optical Switching Via Quadratic Nonlinearities in a Mach-Zehnder Device with Soliton-like Pulses