Fourier transform of the Ruderman-Kittel interaction using Ewald's method