Monitoring and sanctioning in the commons: An application to forestry