Photonic networks-on-chip for optimizing high-performance microprocessors