Effects of injector barrier on performance of terahertz quantum-cascade lasers