Scope and selectivity in palladium-catalyzed directed C–H bond halogenation reactions