Amide-imidol tautomerism in aromatic polyamides