Investigation of Co(OH)2 formation during cobalt electrodeposition using a chemometric procedure