IAEA, Iran work out 'temporary solution' amid impasse