factors affecting life expectancy