how pyrite is mined and processed