Nanoscale optical and electrical characterization of horizontally aligned single-walled carbon nanotubes