The Scope and Mechanism of Phosphonium-Mediated SNAr Reactions in Heterocyclic Amides and Ureas.