Chemical modulation of the electronic properties of polydiacetylenes