In-situ electrochemical spectroscopy and probe microscopy studies of electrodeposition