Structural and functional link between the mitochondrial network and the endoplasmic reticulum