Trends in the thermal stability of two-dimensional covalent organic frameworks.