Mitochondrial dysfunction and endoplasmic reticulum stress in endocrine diseases