Electrochemical response of permanent magnets in different solutions