Gravar-mail: An equilibrium model for linear and closed-loop amyloid fibril formation