Bond and strain energy effects in surface segregation: An atomic calculation