Guidelines for the allocation and management of water for maintaining the ecological functions of wetlands