Conformational dynamics and stability of u-shaped and s-shaped amyloid β assemblies