Testing the response of macroinvertebrate functional structure and biodiversity to flooding and confinement