Ion-selectivity of iron sulfides and their effect on H2S corrosion