Risk allocation and the costs and benefits of public-private partnerships