Layers of structure and function in protein aggregation.