Crystal structure and phase transition in the mixed compound KCd0.84Hg0.16Cl3·H2O