Global patterns of Joule heating in the high-latitude ionosphere