Tesla shares have surged since it was announced the company would join the S&P 500 index.