Effects of external magnetic field on the solidification process in Nd–Fe–B alloy: phase-field simulation