Depletion and enrichment of an alloy surface