Barrier formation in graded Hg1−xCdxTe heterojunctions