Study on corrosion behaviors of sintered Nd–Fe–B magnets in different environmental conditions