Effect of shifts in habitats and flow regime associated to water diversion for agriculture on the macroinvertebrate community of a small watershed