Automatic tuning circuits for Mach-Zehnder interferometer optical switches