Ewald summation added.