Electrochemical digital simulation: incorporation of the Crank—Nicolson scheme and n-point boundary expression into the Rudolph algorithm