Underpotential deposition and electrocrystallization of metals: an in situ scanning tunnelling microscopy study with lateral atomic resolution