XRD measurements of the structure factors of diamond