Battery formed by welding dissimilar materials