Electrostatic lattice sums for semi-infinite lattices