Thermodynamics of binary alloy thin films