Preparation and properties of silicon-containing polyimides