Electrochemical reactions of pyrite in acid perchlorate solutions