Halocyclizations: The cyclization of heterocyclic olefinic amides and ureas