In vitro selection of nucleic acids for diagnostic applications