Electrodeposition of silicon carbide