Interplanetary magnetic field control of plasma distribution in the polar ionosphere