Thermodynamics of liquid Cu–Mg alloys