what is the process of mining pyrite