The Evolution of the Idea of God: An Inquiry Into the Origin of Religions