Protracted river response to medieval earthquakes