How did the enlightenment and American revolution change the way people viewed their relationship to their ruler?