Stream regulation by small dams affects benthic macroinvertebrate communities: from structural changes to functional implications