A refractive index interferometry method based on the X-ray crystallography