Melamine-templated TiO2 nanoparticles as anode with high capacity and cycling stability for lithium-ion batteries