Understanding the kinetics segregation in core-shell nanowires: a phase-field approach