Write an essay on the pathophysiology of epilepsy.