Polymers and Molecular Wires as Chemical Sensors