3D-hierarchical SnS nanostructures: controlled synthesis, formation mechanism and lithium-ion storage performance