Thermal contribution to thermodynamic functions in the Thomas–Fermi model