Isolation of sulfur dioxide from gases