Stable marriage problems with quantitative preferences