Lifetime Optimization of Amorphous Silicon Thin-Film Anodes for Lithium-Ion Batteries