Electrochemical and spectro-electrochemical investigation of metal electrodeposition