Sustaining environmental flows in water-deficient rivers via inter-basin hydropower transfer