Covalent organic frameworks as advanced materials in the application of chemical detection