Microkinetic model of nucleation and its application in electrochemistry