Cerebral hemodynamics in the different phases of migraine and cluster headache