Alternatively, instead of working in solvent-free conditions, also water, carbon dioxide and organic solvents, such as alcohol or glycol solvents (for example methanol, ethanol, 1 -propanol, 2-propanol or mixtures of those alcohol solvents) or solvent mixtures thereof (such as mixtures of water and alcohol and/or glycol solvents) can be used as reaction media.