Arsenic chemistry with sulfide, pyrite, zero-valent iron, and magnetite