Guided-mode resonances in flexible 2D terahertz photonic crystals