Correction to: Nature Materials https://doi.org/10.1038/s41563-019-0318-3, published online 18 March 2019.

In the version of this Article originally published, the following sentence was missing from the acknowledgements: ‘Part of this work was supported by the EU through the POROUS4APP project—H2020-NMP-PILOT-2015 no. 686163.’ This has been corrected in the online versions of the Article.