Alternatively, a compound of the formula II, wherein L is a leaving group such as alkoxy, and R1 is is a 5 to 10 membered saturated, unsaturated or partially unsaturated heterocyclic ring, can be prepared from the diazonium intermediate derived from a compound of the formula VII. The diazonium intermediate is prepared by reaction of a compound of the formula VII with an acid such as hydrochloric a