Interplay of Configurational and Structural Transitions in the Course of Intercalation