Capacitive welding of studs