Simultaneously removing sulfur oxides and nitrogen oxides