Thermodynamics of Deep Levels in Semiconductor