Connecting endoplasmic reticulum stress to autophagy by unfolded protein response and calcium