Capacitors with potential-jump barrier or surface barrier