Propagation and amplification of molecular information using a photo-responsive molecular switch