Thiolation with inversion at secondary positions during fragmentation-rearrangement of sugar dithiobis(thioformates)