Effect of dislocations on the electrical and optical properties of long‐wavelength infrared HgCdTe photovoltaic detectors