A general analytical approach for assessing the effects of hydroclimatic variability on fish habitat