Why did living conditions in industrialized nations encourage compassionate and charitable feelings among some people?