how is the endoplasmic reticulum affected by diabetes