Cycloaddition of haloketenes to imines: A convenient synthesis of functionally substituted β-lactams and 2-pyridones.