Electrolysis of cobalt(II) nitrate