Electron and energy transfer mechanisms for fluorescence modulation with photochromic switches