A Smooth Particle Mesh Ewald Method