Reaction of Singlet Oxygen with Thioanisole in Ionic Liquids: a Solvent Induced Mechanistic Dichotomy