Membrane-based gas separation processes