Compositional instability of Earth's solid inner core