Gandalf the Grey, Lord of the Rings