Thermodynamic properties of calcium-magnesium alloys determined by emf measurements