Kinetic and electrostatic energies in quantum mechanics