Secondary structure dependent self-assembly of beta-peptides into nanosized fibrils and membranes