Application of carbon dioxide in reaction work-up and purification procedures