Stability of brain potentials, mental abilities, and cortical thickness