Photonic Integrated Devices And Circuits Based On Arrayed Waveguide Gratings