Amide and amine nucleophiles in polar radical crossover cycloadditions: synthesis of γ-lactams and pyrrolidines.