High-resolution X-ray diffraction studies of molecular beam epitaxy-grown HgCdTe heterostructures and CdZnTe substrates