Electrochemical behavior of rare-earth magnet alloys in various solutions