Efficacy of a specialized inpatient rehabilitation program in patients with early versus chronic epilepsy