Electrolysis of nickel(II) nitrate