Thermodynamic properties of ternary semiconducting alloys