Tesla beats quarterly revenue estimates