Carboxylic acids and carboxylic acid isosteres of n-heterocyclic compounds