Removing sulfur dioxide or sulfur trioxide