Simultaneous synthesis and fixing of covalent organic framew