Classical Electrostatic Description of the Work Function and Ionization Energy of Insulators