Ending with what century did religion play a smaller part in the curriculum of universities