Origin of regioselectivity in palladium-catalyzed cross-coupling reactions of polyhalogenated heterocycles.