Electron-Transfer Mediated Photo-Switching In Nanoparticles