The ecology of sleep in free-living animals