River macroinvertebrate community response to environmental change