Capacitors with good temperature resistance