Boundary Conditions For Electrostatic Potential Energy