Complete Mixing Model for Gas Separation by Membranes