Macroscopic theory of pulsed-laser annealing. III. Nonequilibrium segregation effects