Distribution of ionic components between two immiscible solutions. Partition of weak bases