Efficient Design of Integrated Photonic Circuits