Three-dimensional Photonic Devices and Circuits