Computer simulation of AgI nanostructures in single-wall carbon nanotubes