d) Intermediates of formula (III) may be prepared by reacting an intermediate of formula (V) with an appropriate acidic solution, e.g. hydrochloric acid, or basic solution, e.g. hydrogen bromide or sodium hydroxide, in a suitable solvent e.g. an alcohol, such as ethanol or propanol.