Prior to the Protestant Reformation, the medieval church in western Europe was criticized for