Structure–stability–function relationships of dendritic spines