Thermochemical transformations of compounds modelling aromatic polyamide units