How sleep deprivation affects work