40 Gb/s all optical routing using terahertz optical asymmetric demultiplexer (TOADs)