Mathematical model of computer-programmed intermittent dual countercurrent chromatography applied to hydrostatic and hydrodynamic equilibrium systems.