The surface effects on solid and hollow nanowires under diametral loading