Model of the extendable freely-jointed-chain in three dimensions