Next, the compound of the formula (24) can be chlorinated with a suitable chlorinating agent such as thionyl chloride, oxalyl chloride, phosphorus pentachloride, phosphorus oxychloride, mesyl chloride (in DMF) or a combination of mesyl chloride and sodium chloride to obtain a compound of the formula (25).