On the electrostatic structure of neutron stars