Correction to: Nature Nanotechnology https://doi.org/10.1038/s41565-023-01391-6. Published online 4 May 2023.

In the version of this article initially published, the affiliations list was incorrectly parsed, causing authors Yingqiu Zhou (Department of Materials, University of Oxford, Oxford, UK, and Denmark Technical University, Lyngby, Denmark) and Jamie Warner (Walker Department of Mechanical Engineering, The University of Texas at Austin, Austin, TX, USA and Texas Materials Institute, The University of Texas at Austin, Austin, TX, USA) to be affiliated with the wrong institutions. The error has been corrected in the HTML and PDF versions of the article.