Influence of magnetic fields on cobalt electrodeposition