High-performance operation of single-mode terahertz quantum cascade lasers with metallic gratings