The metalated porphyrins can be contacted with compounds having formula RP -RZ, where RP is cyclopentadienyl or aryl having about 6 to about 20 carbon atoms, alkyl having 1 to about 10 carbon atoms, alkenyl having 2 to about 10 carbon atoms, or porphyrinato and RZ is a leaving group.