Fluctuations and thermodynamics of the charge-density-wave phase transition.