Ludwig–Soret effect formulated from the grain-boundary-phase model