Removing mixtures of hydrogen sulfide and carbon dioxide