Tehran eyes path ahead after US withdrawal from nuclear pact