Comparative study of electrochemical and thermal oxidation of pyrite