Magnetic poles of astronomical bodies