X-Ray Diffraction Studies of Ionic Liquids: from Spectra to Structure and Back