Variable-area diodes with LW HgCdTe