Numerical Simulation of Phase Separation in Binary and Multicomponent Systems