Effects of age of onset and medication on cognitive performance and quality of life in patients with epilepsy