Modeling the dynamics of the inner magnetosphere during strong geomagnetic storms