Photonic Waveguides: Theory and Applications