Performance of Optical Encoder and Optical Multiplexer Using Mach-Zehnder Switching