Metal interactions with the sulfur cycle in modern and ancient environments