Membrane-based sample preparation coupled on-line to chromatography or electrophoresis