Cooperative Solution of Local Externality Problems: A Case of Mechanism Design Applied to Irrigation