Polyamides derived from aromatically bound amino and carboxyl groups of amino-carboxylic acids or of polyamines and polycarboxylic acids