Tesla reaches settlement to end China trademark dispute