Joint estimation of discount rates and willingness to pay for public goods