Dynamics of subglacial floods