The Sanfermines reveal the dynamics of crowds in danger