Effect of environment on ultrafast photoexcitation kinetics in single-wall carbon nanotubes