Dynamics of large inland ice masses in Antarctica and Greenland