How did the transition from the Renaissance to the Enlightenment impact societal views on religion?