Computation of the loading diagram and the tensile strength of carbon nanotube networks