Terahertz frequency-selective surface and guided-mode resonance f lters