Automatic welding of lead-acid battery terminals