Forecasting the effects of water regulation on the population viability of a threatened amphibian