Multiphase/multicomponent modeling of solidification processes: coupling solidification kinetics with thermodynamics