An aggregate quantity framework for measuring and decomposing productivity change