Electrostatic lattice sums for semi-infinite lattices | Synapse