Preparation of carbon nanoparticles from electrolysis of molten carbonates and use as anode materials in lithium-ion batteries