Sulfide assessment in bioreactors with gas replacement