Postbuckling of nano rods/tubes based on nonlocal beam theory