Preparation of carbon-coated TiO2 nanostructures for lithium-ion batteries