Nanoreactors based on porphyrin-functionalized carbon compounds