Competition between charge transfer via superexchange and thermally activated energy transfer in porphyrinheterodimerquinone systems