Tesla reports $312 million profit in Q3 as Model 3 deliveries surge