What influence did the Medieval Church have over the population of Europe during the Middle Ages?