A general framework for the analysis of preference variation