Tesla plans to spend more than $770 million on Texas factory expansion