Study of single-walled carbon nanotubes for applications in transistors, photodetectors, and stretchable electrodes for tactile sensors