Nucleophilic halogenations of diazo compounds, a complementary principle for the synthesis of halodiazo compounds: experimental and theoretical studies.