Resonating Terahertz Response of Periodic Arrays of Subwavelength Apertures