Experimental and computational study of the catalytic asymmetric 4π-electrocyclization of N-heterocycles.