Method for sampling and analysis of hydrogen sulfide