Metallation and metal–halogen exchange reactions of imidazoles