Electron transfer in voltage tunable two-color infrared photodetectors