A compound of formula III in which J is a halide may be prepared by reacting a compound of formula IV with a halogenating agent such as thionyl chloride, oxalyl chloride, phosphorus pentachloride, phosphorus oxychloride, thionyl bromide, and the like.