After the reaction, the products can be converted into their corresponding carboxylic acids or derivatives thereof, for example esters and amides, preferably esters, by secondary reactions, for example hydrolysis, esterification or aminolysis, preferably esterification.