Managed floodplain inundation maintains ecological function in lowland rivers.