Geometry and self-stress of single-wall carbon nanotubes and graphene via a discrete model based on a 2nd-generation REBO potential