Design of band engineered HgCdTe nBn detectors for MWIR and LWIR applications