Effects of chronic epilepsy on intellectual functions