Increased depth to the water table during river drying decreases the resilience of Gammarus pulex and alters ecosystem function