Tesla confirms having produced its 300,000th electric car