Thermodynamics from first principles: temperature and composition of the Earth's core