Linewidth enhancement factor of terahertz quantum cascade lasers