Synthesis and properties of mixed cardic polyimides