Molecular-dynamics calculations of thermodynamic properties of metastable alloys