Solar history and paleohydrology during the last two millennia