Assessment of pain in the elderly using event-related cerebral potentials