Mechanism of cyanoacetylene photochemistry at 185 and 254 nm.