Nucleic acid molecular switches