How does long term exposure to stress also cause impairment in memory