Carbon molecular sieve gas separation membranes-I. Preparation and characterization based on polyimide precursors