The Diversity of Religious Systems across History: An evolutionary cognitive approach