Terahertz Sensors Using Surface Waves in Periodic Metallic Structures