Age effects on event-related potentials-a correlation with dementia