Correction to: Nature Physics https://doi.org/10.1038/s41567-022-01790-x, published online 31 October 2022.

In the version of this article initially published, equations (5) and (7)–(10) in the Methods section and the expression in the sentence below equation (10) were missing epsilons. The errors have been corrected in the HTML and PDF versions of the article.