A Monte Carlo study of surface segregation in alloys