Physics Of Optoelectronic And Plasmonic Devices: Cavities, Waveguides, Modulators And Lasers