Mathematical Analysis and Optimization of a Flow-Through Diffusion Cell System