Quantifying impacts of the COVID-19 pandemic through life-expectancy losses: a population-level study of 29 countries