Learning Social Welfare Functions