Smoothed-particle method for phase separation in polymer mixtures