The phase problem in the analysis of X-ray diffraction data in terms of electron-density distributions