Analysis and suppression of dark currents in mid-wave infrared photodetectors