From Diffraction Patterns to Crystal Structures