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