Correlation Between Structural and Sensing Properties of Carbon Nanotube-Based Devices