Effect of cognitive impairment on rehabilitation outcome.