Electrochemically controllable coating of a functional silicon film on carbon materials