Influence of river regulation and instream habitat on invertebrate assemblage' structure and function.