Effects of the distribution and geometry of carbon nanotubes on the macroscopic stiffness and microscopic stresses of nanocomposites