A comparison of ULF waves observed at polar latitudes on the ground and at ionospheric heights