Influence of structural modification on the properties of poly(amide–imide)s