Quantification of mitochondrial morphology in situ