Mitochondrial morphology provides a mechanism for energy buffering at synapses