Hydrogen sulfide measurement