Simulation of the solidification of pure nickel via the phase-field method