Distortion of the ULF wave spatial structure upon transmission through the ionosphere