Resveratrol reduces liver endoplasmic reticulum stress and improves insulin sensitivity in vivo and in vitro