Friction and dynamics of rock avalanches travelling on glaciers