Form of the inhomogeneity spectrum of the high-latitude ionosphere in the direction of the geomagnetic field