Statistics for The electrostatic potential in a finite ionic crystal