Tesla's years of battery tech investments are becoming a buffer against nickel's rising costs