Electrochemical corrosion behavior of Nd–Fe–B permanent magnets with modified microstructure