Tesla posted its lowest quarterly gross margin in two years, missing market estimates, as it slashed prices aggressively