Separation of substances in solution by means of their unequal diffusion through semipermeable membranes