The decentralization of public services: lessons from the theory of the firm