Alterations of Neuronal Dynamics as a Mechanism for Cognitive Impairment in Epilepsy.