Electron- and energy-transfer processes involving excited states of lanthanide complexes: evidence for inner-sphere and outer-sphere mechanisms