Porphyrin-based framework materials for energy conversion