Comparison of continuum-based and atomistic-based modeling of axial buckling of carbon nanotubes subject to hydrostatic pressure