Development and Applications of Metasurfaces for Terahertz Waves