Cortical event-related potentials in Alzheimer's disease and frontotemporal lobar degeneration