Incorporation of Metal Ions into Polyimides