Purification of compounds synthesised