High-performance terahertz electro-optic detector