Efficient evaluation of the 3-D periodic Green's function through the Ewald method