Modelling of microsegregation in ternary alloys: Application to the solidification of Al–Mg–Si