Text this: Simulation of optical and electronic characteristics of terahertz quantum cascade laser