1 Tb/s all-optical XOR and AND gates using quantum-dot semiconductor optical amplifier-based turbo-switched Mach–Zehnder interferometer