Structure and sequence determinants of aggregation investigated with molecular dynamics