Macrosegregation near a cast surface caused by exudation and solidification shrinkage