Synthesis and tailored properties of covalent organic framework thin films and heterostructures