Use of data on planned contributions and stated beliefs in the measurement of social preferences