Cognitive impairment across ALS clinical stages in a population-based cohort