DNA gated photochromism and fluorescent switch in a thiazole orange modified diarylethene.