Scattering Matrix Approach to Large-Scale Photonic Crystal Circuits