how is pyrite mined and processed