Welding of battery contacts