High-throughput optical imaging and spectroscopy of individual carbon nanotubes in devices