The STARFLAG handbook on collective animal behaviour: 2. Three-dimensional analysis