insomnia during times of stress is related to