Polythiophene-based optical sensors for small molecules.