Linear and nonlinear properties of chalcogenide glasses in the terahertz frequency