Ecclesiastical heritage, territory and society: Knowledge tools and historical-critical debate