how pyrite mined and processed