An approach to the ecological characterization of arid and semiarid basins