The mechanisms of free surface segregation