Mechanisms of Formation and Rearrangement of Benziodoxole-Based CF3 and SCF3 Transfer Reagents