Text this: Local magnetic moments in iron and nickel at ambient and Earth’s core conditions