A unifying framework for assessing changes in life expectancy associated with changes in mortality: the case of violent deaths