The determinants of the choice between public and private production of a publicly funded service