Correction to: Nature Electronics https://doi.org/10.1038/s41928-021-00697-4, published online 24 January 2022.

In the version of this article initially published, there were errors in Figs. 1 and 3. In Fig. 1a, the center-bottom label now reading “N 1s” first appeared as “Na 1s.” In Fig. 3a, the top-left label now reading “Bleaching: –0.5 V” initially appeared, in part, as “2.5 V,” while the lower-right label now reading “Coloration: 2.5 V” initially appeared, in part, as “–0.5 V.” The errors have been corrected in the HTML and PDF versions of the article.