Buckling of single-wall carbon nanotubes from molecular mechanics to continuum models