Epilepsy, headache, and chronic pain