Bidirectional Transmission in an Optical Network on Chip With Bus and Ring Topologies