Preparation from aromatic aldehydes, aromatic carboxylic acids or derivatives thereof and aromatic amines