in an organic solvent such as ether, dioxane, benzene, acetonitrile, tetrahydrofuran or chloroform, or a heterogeneous or homogeneous solvent system comprising said organic solvent and water, at a temperature in the range from -20??? to 80??? C. in the presence of a condensing agent such as amine, sodium carbonate or sodium hydroxide;