Surface structure determination by X-ray diffraction