Theory of surface effects in binary alloys. II. Segregating alloys