SnO2 nanoparticles uniformly encapsulated in polyaniline-derived nitrogen-doped carbon as anode materials for lithium-ion batteries