The Evolution of Gandalf's Character in the Lord of the Rings Trilogy