Separation of gas mixtures in unsteady-state conditions