Ritter enabled catalytic asymmetric haloamidation and mechanistic studies for intermolecular halofunctionalization