Precipitating and relieving factors of migraine versus tension type headache