Study provides clearer understanding of how migraines affect