Nature Materials 16, 1262–1270 (2017); published online 6 November 2017; corrected online 21 November 2017.

In the version of this Article originally published, Fig. 6 was not cited; a citation to it has now been added at the end of the first paragraph of 'Discussion'. This has been corrected in all versions of the Article.