Separation of particles and macromolecules by phase partition