A nonlinear mechanical model for the fatigue life of thin-film carbon nanotube supercapacitors