having at least one carboxylic group or a thio analogue, or a derivative thereof, and one oxygen or sulfur atom attached to the same aromatic ring system