Membrane based gas sampling and analysis coupled to continuous flow systems