Migraines can have long lasting effects on brain