Mechanistic study of the electrocyclic ring-opening reaction of thiirane