Carbonic anhydrase inhibitory activity of sulfonamides and carboxylic acids incorporating cyclic imide scaffolds.