Terahertz semiconductor-heterostructure laser