Preparation and performance of nickel–tin alloys used as anodes for lithium-ion battery