Design, simulation, fabrication, and characteristics of terahertz metamaterial devices