terahertz cavity