Short- and long-term variability of the Antarctic and Greenland ice sheets