The evolution of distributed sensing and collective computation in animal populations | Synapse