Pharmaceutical Applications of Carbon Nanotube-Based Optical Sensors: Theory and Experiment