Optical Digital to Analog Converter Based on Microring Switches