Mathematical analysis of frontal affinity chromatography in particle and membrane configurations.