Central role of the scaffold protein TNF-receptor associated factor 2 in regulating endoplasmic reticulum stress-induced apoptosis