Purification of compounds using chromatography