Electrolysis of tin(IV) chloride