Magnetospheric response to geomagnetic storms