Long-term prognosis of epilepsy, prognostic patterns and drug resistance : a population-based study