An equation of state for liquid iron and implications for the Earth's core