First-Principles Study of Thermoelectric Properties of Covalent Organic Frameworks