Correction to: Nature Nanotechnology, published online 30 June 2022.

In the version of this article initially published, the Acknowledgements section omitted the text “K.X. thanks the Joint Center of Energy Storage Research, an energy hub funded by US DOE Basic Energy Science, for support,” which has now been inserted in the HTML and PDF versions of the article.