Understanding drivers of glacier-length variability over the last millennium