Structure of the magnetospheric magnetic field during magnetic storms