Energy differences from electrostatic potentials at nuclei