Tesla stock rises 3.5% to snap three-week losing streak