Active sampling system for gas-phase analyzers