Electrochemical and hydrothermal deposition of ZnO on silicon: from continuous films to nanocrystals