How has the influence of religion in education evolved throughout history?