VEGF Ameliorates Cognitive Impairment in In Vivo and In Vitro Ischemia via Improving Neuronal Viability and Function