The move underscores Tesla’s drive to widen its international reach as it faces slowing demand and intensifying competition in its core markets