Inhibition of pyrite oxidation by surface treatment