Polydiacetylenes for photonic application: chemical modulation of optical properties