What causes migraines? Study of 'brain blackout' offers clues