Capacitor heat treatment method