Development of the electrocrystallization theory