Reaction of indolizines with elemental sulfur