Researchers decode average life expectancy after dementia diagnosis