The evolution of religion and the evolution of culture