Sweden's national modern art gallery is to return a painting seized by Germany's Nazi regime to the descendants of the Jewish art dealer who originally owned it.