Tesla rival receives $1.3 billion from Amazon, other investors