Homogenization of long-term mass-balance time series