Phase retrieval methods for surface x-ray diffraction