Buckling of cylindrical shells subjected to a finite number of lateral loads: application to single-walled carbon nanotubes