Integrated terahertz quantum cascade laser system for space research