Solar wind-magnetosphere interaction as observed in the geomagnetic field variations in the polar regions