Multispectral quantum-dot photodetectors