how is pyrite mined or processed