Accurate electronic properties for (Hg,Cd)Te systems using hybrid density functional theory