X rays can be used in the study of crystal structure because they