Effects of solvent on TMP photophysics. Transition from no barrier to barrier case, induced by solvent properties