Neuroprotective effects of berberine on stroke models in vitro and in vivo