Methodology to measure the availability of water, uses and factors of variation of the water resource in rivers