Theory of Pressure-Induced Staging Transitions in Graphite Intercalation Compounds