Correction to: Nature Communications https://doi.org/10.1038/s41467-019-10574-6, published online 19 July 2019.

The original version of this Article contained an error in the legend of Fig. 5a, in which the blue data was incorrectly labelled ‘PY2B-COF’ rather than the correct ‘PT2B-COF’ and the grey data was incorrectly labelled ‘PT2B-COF’ rather than the correct ‘PY2B-COF’. This has been corrected in both the PDF and HTML versions of the Article.