Detection of isophthalic acid