Temperature and composition of the Earth's core