Transmission response for in-plane and out of plane propagation for a 2D photonic crystal with a planar cavity