Bernoulli potential in type-I and weak type-II superconductors. III. Electrostatic potential above the vortex lattice