Electron and energy transfer mechanisms to switch the luminescence of semiconductor quantum dots