Understanding fragility and engineering activation stability in two-dimensional covalent organic frameworks