Preferably, solvents such as pyridine, dimethylformamide, tetrahydrofurane, acetonitrile or dichlorometane are used with bases like triethylamine, N-methylmorpholine, pyridine or alkali metal carbonates at ambient temperature for 2-16 h reaction time, or until end of reaction is achieved as detected by chromatographic or spectroscopic methods.