Timing and plasticity of shoaling behaviour in the zebrafish, Danio rerio