Formation of Five- and Six-Membered Heterocyclic Rings by Radical Cyclization