Facile synthesis and electrochemical characterization of porous and dense TiO2 nanospheres for lithium-ion battery applications