Ylide formation and rearrangement in the reaction of carbene with divalent sulfur compounds