uses of pyrite in gold mining