Neuromodulation in treatment of refractory headaches