Synthesis and selective transformation of nitrogen-containing compounds via radical pathways