Chemical analysis of and dopant/impurity behaviour in Hg1−xCdxTe and related materials