Research on heterocyclic compounds. XI. Heteroarylcarboxylic acids: preparation and antiinflammatory activity