World needs urgent political action to guide AI, pope tells G7