Hyperbranched Polyimides for Gas Separation Applications. 1. Synthesis and Characterization