Applications of the statistical mechanics of inherent states to granular media