Electrodeposition of silicon from molten salts