Elastic constants of single-wall carbon nanotubes through molecular mechanics and discrete homogenization