Distillation of bose-einstein condensates in a double-well potential.