Aspects of phase retrieval in x-ray crystallography