Molecular basis of local energy generation during mitochondrial and peroxisomal division