Clues to the functions of mammalian sleep