Influence of Doping and Controlled Sn Charge State on the Properties and Performance of SnO2 Nanoparticles as Anodes in Li-Ion Batteries