Resveratrol reduces brain injury after subarachnoid hemorrhage by inhibiting oxidative stress and endoplasmic reticulum stress