XRD characterization of multilayered systems