Synthesis and rearrangement of pyrrolyl sulfides and sulfones