Modeling of dark current in mid-infrared quantum-well infrared photodetectors