Statistical mechanics of structural fluctuations