Chemical evolution. XXVIII. Photochemical conversion of enaminonitriles to imidazoles. Scope and mechanism