Regioselective synthesis of nitrosoimidazoheterocycles using tert-butyl nitrite.