Iron under Earth's core conditions: Liquid-state thermodynamics and high-pressure melting curve from ab initio calculations