Principles of Photonic Integrated Circuits