Correction to: Nature Materials https://doi.org/10.1038/s41563-023-01529-w. Published online 6 April 2023.

In the version of this article initially published, the units in the y-axis labels for Figures 2g, 3e,f and 5d currently reading “Luminance (cd m–2)” originally appeared as “Luminance (cd cm–2)”. The errors have been corrected in the HTML and PDF versions of the article.