Electrocrystallization—factors influencing structure