Polyamides derived from omega-amino carboxylic acids or from lactams thereof