Work function of binary alloys