Dependence of junction formation on substrate in implanted HgCdTe