Quantitative analysis of synaptic morphology