NHC-catalyzed intramolecular redox amidation for the synthesis of functionalized lactams.