Synthesis of imidazoles via hetero-Cope rearrangements