Exact solution of the integrable XXZ Heisenberg model with arbitrary spin. II. Thermodynamics of the system