Fabrication and characterization of three-dimensional carbon electrodes for lithium-ion batteries