Modelling of macrosegregation during solidification processes using an adaptive domain decomposition method