Design and impact of water treaties: Managing climate