Electrochemical characteristics of Mg–Ni alloys as anode materials for secondary Li batteries