Spectral properties of porphyrins and their precursors and derivatives