A method for the summation of the Fourier series used in the x-ray analysis of crystal structures