Process for the purification of gases containing hydrogen sulfide