Modeling of electrocrystallization for pulse current electroforming of nickel