THERMODYNAMICS AND STATISTICAL MECHANICS OF FROZEN SYSTEMS IN INHERENT STATES