Monolithically integrated CMOS nanophotonic segmented Mach Zehnder transmitter