Selection and applications of functional nucleic acids for infectious disease detection and prevention