Statistical thermodynamics of the melting curve at high pressures