Chemically modified covalent organic frameworks for a healthy and sustainable environment: First-principles study.