Micro-fabricated devices for manipulating terahertz radiation