THE STUDY OF OPTICAL GAIN FOR TERAHERTZ QUANTUM CASCADE LASER USING DENSITY MATRIX METHOD