Separation of sulfur from gases