Grain surface relaxation and grain interaction in powder diffraction