Thermodynamics and statistical mechanics of frozen systems in inherent states.