Variable-temperature powder X-ray diffraction of aromatic carboxylic acid and carboxamide cocrystals.