X-ray multiple diffraction as a tool for studying heteroepitaxial layers