Switchable Synthesis of 4,5-Functionalized 1,2,3-Thiadiazoles and 1,2,3-Triazoles from 2-Cyanothioacetamides under Diazo Group Transfer Conditions.