The sociality of sleep in animal groups