On the computation of the demagnetization tensor field for an arbitrary particle shape using a Fourier space approach