How does the EARTH have a magnetic CORE?