Triazine and Porphyrin-Based Cross-Linked Conjugated Polymers: Protonation-Assisted Dissolution and Thermoelectric Properties