Electrolysis of tin(II) chloride