Thermodynamic Properties of Radiation near the Black-Hole Horizon