Imidazole and pyrazole-based proton conducting polymers and liquids