When carrying out the acylation, an inorganic or organic base is advantageously added, for example, an alkali metal hydroxide or carbonate, such as sodium or potassium hydroxide or sodium or potassium carbonate, or a tertiary amine, such as triethylamine, triisopropylamine or pyridine.