Crystal structure analysis