Habitat alteration assessment for the management of environmental flows in regulated basins.