Capacitor integral with or on the leadframe