Temperature factors and thermodynamic properties of crystals