Estimating magnetospheric currents and geoeffectiveness of interplanetary CMEs with magnetohydrodynamic simulations