Application of a theory for particle statistics to structure refinement from powder diffraction data