How does X-ray crystallography work?