Structure from diffraction methods