Correction to: Nature Nanotechnology https://doi.org/10.1038/s41565-023-01542-9, published online 4 December 2023.

In the version of the article initially published, there was an error in the scale bar in Fig. 4c which has been corrected to 10 µm, rather than 5 µm, in the HTML and PDF versions of the article.