Microporous copolymers for increased gas selectivity