Surface SiO2 thickness controls uniform-to-localized transition in lithiation of silicon anodes for lithium-ion batteries.