Hydrolytically stable polyimide ionomer for fuel cell applications