Structural and functional studies with membrane-associated proteins in synaptic exocytosis and endocytosis