Tesla profit tanks in earnings, but the stock pops