Ecological controls on water-cycle response to climate variability in deserts