Calculation of thermodynamic properties of the phases in the Y-Ba-Cu-O system