Single-Molecule Study of RNA Hairpin and Pseudoknot Folding