Essays on the determinants and effects of social preferences