A strong correlation between the bending rigidity and the length of single-walled carbon nanotubes