Continuum theory of the ground and excited states in polydiacetylenes