Embedding heteroatoms: an effective approach to create porphyrin-based functional materials.