Nanoporous silicon spheres preparation via a controllable magnesiothermic reduction as anode for Li-ion batteries