Supersonic compact separator of CO2/CH4 with an active control system for gases with varying composition