what is the difference between delirium and dementia