Electrodeposition of amorphous Ni–P coatings onto Nd–Fe–B permanent magnet substrates