Optoelectronics of nanocrystal based infared detectors