Heterocycle synthesis via radical reactions