Crystal Potential Formula for the Calculation of Crystal Lattice Sums