An electrochemical and structural investigation of silicon nanowires as negative electrode for Li-ion batteries