In situ spectroelectrochemical investigations of metal and alloy electrodeposition processes